#类定义的语法
# class：定义类的关键字
# class person ：person是类的关键字，首字母大写

class person:
    money = 100
    def __init__(self,name,age,sex,phone,address,email):
        self.name = name
        self.age = age
        self.sex = sex
        self.phone = phone
        self.address = address
        self.email = email
    def course(self):
        print(self)
        print('course')
        return 111
if __name__  == '__main__':
    p1 = person("张鑫",18,"女",12334234,"大连","22@qq.com")
    p1.course()
    # print(p1.__dict__)

    p1.play = "王者"
    print(p1.__dict__)
    p2 = person("冬冬",18,"男",1234545544,"沈阳","334@qq.com")
    print(p2.__dict__)
    print(p2.money)
    p2.money = 100000000000
    print(p2.money)




